package com.itheima.service.impl;

import com.itheima.dao.AccountDao;
import com.itheima.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.SQLException;

/**
 * <bean id="accountService" class="com.itheima.service.impl.AccountServiceImpl">
 *     <property name="accountDao" ref="accountDao"></property>
 * </bean>
 */
@Service
public class AccountServiceImpl implements AccountService {

    @Autowired
    private AccountDao accountDao;
    @Override
    public void save() throws SQLException {
        System.out.println("service 代码执行了");
        accountDao.save();
    }

}
